package abg.core.domain.db;

import abg.core.common.mybatis.config.FieldInsert;
import abg.core.common.mybatis.config.FieldSet;
import abg.core.common.mybatis.config.FieldUpdate;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 聊天群内成员
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "cha_group_user", onUpdate = FieldUpdate.class, onInsert = FieldInsert.class, onSet = FieldSet.class)
public class ChatGroupUser extends ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    //群成员id
    private String userId;

    //群id
    private String groupId;

    //是否为群主;0不是；1是；默认0；
    private String isLeader;

    //用户原始昵称,所有人可见
    private String userOriginName;

    //用户在群昵称,所有人可见
    private String userNickName;

    //群昵称，仅自己可见
    private String groupNickName;

    //是否展示昵称 0可见；1隐藏；默认0
    private String isShowUserName;

}
